package tt.dz.mvc.model;


import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;

import tt.dz.entity.system.OmsOperList;
import tt.dz.util.annotation.Display;

import java.io.Serializable;

public class AddUserModel implements Serializable
{
	private String user_type;
	private int entity_type;
	private int auth_range;

	@Display("帐号")
	@NotNull
	private String account;

	@NotNull
	private String oper_name;

//	@NotNull
//	private String password;
//
//	@NotNull
//	private String repeatPassword;
	private String entity_id;
//	private String phone_no;
	private String id_card;

	private String email;
	private String company;
	private String entity_name;

	public OmsOperList generateOmsOperList()
	{
		OmsOperList oper = new OmsOperList();
		oper.setUser_type(user_type);
		oper.setEntity_type(entity_type);
		oper.setAuth_range(auth_range);
		oper.setAccount(account);
		oper.setPhone_no(account);
		oper.setOper_name(oper_name);
//		oper.setPassword(getPassword());
		oper.setEntity_id(entity_id);
//		oper.setPhone_no(getPhone_no());
		oper.setId_card(id_card);
		oper.setEmail(email);
		oper.setCompany(company);
		oper.setEntity_name(entity_name);
		return oper;
	}


	public String getUser_type()
	{
		return user_type;
	}

	public void setUser_type(String user_type)
	{
		this.user_type = user_type;
	}

	public int getEntity_type()
	{
		return entity_type;
	}

	public void setEntity_type(int entity_type)
	{
		this.entity_type = entity_type;
	}

	public int getAuth_range()
	{
		return auth_range;
	}

	public void setAuth_range(int auth_range)
	{
		this.auth_range = auth_range;
	}

	public String getAccount()
	{
		return account;
	}

	public void setAccount(String account)
	{
		this.account = account;
	}

	public String getOper_name()
	{
		return oper_name;
	}

	public void setOper_name(String oper_name)
	{
		this.oper_name = oper_name;
	}

//	public String getPassword()
//	{
//		return password;
////	}
//
//	public void setPassword(String password)
//	{
//		this.password = password;
//	}
//
//	public String getRepeatPassword()
//	{
//		return repeatPassword;
//	}
//
//	public void setRepeatPassword(String repeatPassword)
//	{
//		this.repeatPassword = repeatPassword;
//	}

	public String getEntity_id()
	{
		return entity_id;
	}

	public void setEntity_id(String entity_id)
	{
		this.entity_id = entity_id;
	}

//	public String getPhone_no()
//	{
//		return phone_no;
//	}
//
//	public void setPhone_no(String phone_no)
//	{
//		this.phone_no = phone_no;
//	}

	public String getId_card()
	{
		return id_card;
	}

	public void setId_card(String id_card)
	{
		this.id_card = id_card;
	}

	public String getEmail()
	{
		return email;
	}

	public void setEmail(String email)
	{
		this.email = email;
	}

	public String getCompany()
	{
		return company;
	}

	public void setCompany(String company)
	{
		this.company = company;
	}

	public String getEntity_name()
	{
		return entity_name;
	}

	public void setEntity_name(String entity_name)
	{
		this.entity_name = entity_name;
	}
}
